﻿using System;
using System.Collections.Generic;
using System.Text;
using Watchdog.Dal;
using Watchdog.Bll;
using Watchdog.Bll.Base;

namespace Watchdog.Bll.Factory {

    public partial class ZoneFactory {
        public static void Delete ( ZoneBase zone ) {
            DataClient.Current.ZoneDelete (zone.IntData);
        }

        public static Zone GetById ( int id ) {
            return (Zone)new ZoneBase (DataClient.Current.ZoneGetById (id));
        }

        public static void Insert ( ZoneBase zone ) {
            zone.IntData = DataClient.Current.ZoneInsert (zone.IntData);
        }

        public static void Update ( ZoneBase zone ) {
            DataClient.Current.ZoneUpdate (zone.IntData);
        }

    }
}
